package com.sskj.gocoin.p.activity;

import com.lzy.okgo.OkGo;
import com.lzy.okgo.model.Response;
import com.sskj.gocoin.m.HttpConfig;
import com.sskj.gocoin.m.bean.HttpData;
import com.sskj.gocoin.m.http.JsonCallBack;
import com.sskj.gocoin.p.base.BasePresenter;
import com.sskj.gocoin.v.activity.GoogleLoginActivity;

public class GoogleLoginPresenter extends BasePresenter<GoogleLoginActivity> {

    //验证谷歌验证码
    public void verifyCode(String googleCode) {
//        OkGo.<HttpData<String>>post(HttpConfig.BASE_URL + HttpConfig.GOOGLE_LOGIN)
//                .params("dyGoodleCommand", googleCode)
//                .execute(new JsonCallBack<HttpData<String>>(this) {
//                    @Override
//                    protected void _onSuccess(Response<HttpData<String>> response) {
//                        mView.updateUi();
//                    }
//                });

        mView.updateUi(googleCode);
    }
}
